package com.symbio.ishenapi.background.controller;



import com.symbio.ishenapi.background.model.TmSchedulingRecord;
import com.symbio.ishenapi.common.controller.BaseController;
import io.jboot.web.controller.annotation.RequestMapping;



@RequestMapping("/TmSchedulingRecordController")
public class TmSchedulingRecordController extends BaseController {


    /**
     *
     * 修改删除状态
     *
     */
    public void updateStatus(){
        TmSchedulingRecord tmSchedulingRecord = (TmSchedulingRecord)getReqBodyObject(TmSchedulingRecord.class);
        TmSchedulingRecord tsr = TmSchedulingRecord.dao.findById(tmSchedulingRecord.getId());
        if(tsr != null){
            tsr.setStatus(0L);
            if(tsr.update()){
                renderJsonRet(40022);
                return;
            }else{
                renderJsonRet(40023);
                return;
            }
        }
    }


}
